import React, { Component } from 'react';

// 在当前的子组件中引入高阶组件函数
import HOC from './HOC';
class Son extends Component {
    render() {
        console.log('this.props.schoollist', this.props.schoollist);
        return (
            <div>
                <ul>
                    {
                        this.props.schoollist.map(item => <li key={item.id}>{item.school_name}</li>)
                    }
                </ul>
            </div>
        )
    }
}

export default HOC(Son)